<!DOCTYPE html>
<html>
<!-- head -->
{include file="common/page/head"}
<link rel="stylesheet" href="__app__/admin/view/Group/selectAuth/selectAuth.css" />
<body>

{include file="common/page/header"}

<div class="content container-fluid {if $leftBarScale eq '1'} scale {/if}">
    <div class="row">
        <div class="col-md-2 left-section">
            <!-- 左导航菜单 -->
            {include file="common/page/menu"}
        </div>
        <div class="col-md-10 right-section">
            <!--内容区域-->
            <h3><i class="icon iconfont"><!--{$Think.session.currentMenu.icon}--></i>权限设置</h3>
            <div class="inner-section row">
                <div class="items add-div">
                    <table class="table table-striped table-hover table-bordered table-base">
                        <tr>
                            <th width="200px" align="center">功能模块</th>
                            <th>权限</th>
                        </tr>
                        {foreach name="list" item="item"}
                        <tr>
                            <td align="center">
                                <label class="action">
                                    <input type="checkbox" class="controller">&nbsp;{$item.title}
                                </label>
                            </td>
                            <td style="display:flex;width:100%;height:100% !important;">
                                {foreach name="item.data" item="val"}
                                <label class="action">
                                    <input type="checkbox" name="action" value="{$val.id}">&nbsp;{$val.title}
                                </label>
                                {/foreach}
                            </td>
                        </tr>
                        {/foreach}
                        <tr>
                            <td>
                                <input type="hidden" name="id" value="{$id}">
                                <input type="hidden" name="rules" value="{$rules}">
                            </td>
                            <td>
                                <button type="button" class="btn btn-success btn-md" id='save'>保存</button>
                                <button type="button" class="btn btn-default btn-md" onclick="history.go(-1);">取消</button>
                            </td>
                        </tr>
                    </table>
            </div>
            </div>
        </div>
    </div>
</div>
{include file="common/page/jsfiles"}
<!-- 页脚 -->
{include file="common/page/footer"}

<script type="text/javascript" src="__static__/js/form/jquery.form.js"></script>
<script type="text/javascript" src="__static__/js/form/jquery.validate.js"></script>
<script type="text/javascript" src="__static__/js/form/jquery.validate.extend.js"></script>
<script type="text/javascript" src="__app__/admin/view/Group/selectAuth/selectAuth.js"></script>
</body>
</html>